﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using WPFExcelReport.Helpers;
using System.Linq;
namespace WPFExcelReport
{
    public partial class TSHWS04
    { 
        public TSHWS04()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VWASTAMM();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void OnKRS()
        {
            base.OnKRS();
        }
        public override void QueryCommand(object sender, RoutedEventArgs e)
        {
           
            dwData = TBMain.NewRow(); 
            dwData["WAMANDANT"] = app.Mandant; 
            dwData["WALIEFNR"] = " AND STUELISASB='"+KRS.PadRight(38)+"'";
            SResult = TMV.QWSBYWS04(dwData);
            MergeData(SResult, true);
            base.NewCommand(sender, e);
        }
      
    }
}
